/**
 * @author zhaoren
 * @version 1.0
 * @description TODO
 * @date 2020/8/10 9:26
 **/
public class TerminalExpression implements Expression{

    private String data;

    public TerminalExpression(String data) {
        this.data = data;
    }

    public boolean interpret(String context) {
        if (context.contains(data)){
            return true;
        }
        return false;
    }
}
